import request from '@/utils/request'
// 玩家监控
export function getMonitorPlayerList(query) {
  return request({
    url: '/monitor/player/list',
    method: 'get',
    params: query
  })
}
// 玩家监控配置
export function getMonitorConfig(query) {
  return request({
    url: '/monitor/config/list',
    method: 'get',
    params: query
  })
}

// 处理监控配置
export function handleMonitorConfig(data) {
  return request({
    url: '/monitor/config/handle',
    method: 'post',
    data
  })
}
// 服务器监控列表
export function getMonitorServerList(query) {
  return request({
    url: '/monitor/server/list',
    method: 'get',
    params: query
  })
}
// 服务器监控配置列表
export function getMonitorServerConfig(query) {
  return request({
    url: '/monitor/server/config/list',
    method: 'get',
    params: query
  })
}

// 处理监控配置
export function handleMonitorServerConfig(data) {
  return request({
    url: '/monitor/server/config/handle',
    method: 'post',
    data
  })
}

// 服务器监控列表
export function getMonitorDataList(query) {
  return request({
    url: '/monitor/data/list',
    method: 'get',
    params: query
  })
}

// 数据监控配置列表
export function getMonitorDataConfig(query) {
  return request({
    url: '/monitor/data/config/list',
    method: 'get',
    params: query
  })
}

// 数据监控配置列表
export function getMonitorDataTypeConfig(query) {
  return request({
    url: '/monitor/data/type_config/list',
    method: 'get',
    params: query
  })
}

// 处理监控配置
export function handleMonitorDataConfig(data) {
  return request({
    url: '/monitor/data/config/handle',
    method: 'post',
    data
  })
}

// 异常战斗结果列表
export function getFightResultList(query) {
  return request({
    url: '/monitor/fight/result/list',
    method: 'get',
    params: query
  })
}

// 处理异常战斗结果
export function handleFightResult(data) {
  return request({
    url: '/monitor/fight/result/handle',
    method: 'post',
    data
  })
}

// 玩家英雄监控
export function getMonitorPlayerHeroList(query) {
  return request({
    url: '/monitor/playerHero/list',
    method: 'get',
    params: query
  })
}
